﻿@{
    ViewBag.Title = "消息接收端";
}

<div id="msmsg"></div>


<script src="@Url.Content("~/Scripts/jquery.signalR-1.1.4.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Signalr/Hubs")"></script>
<script>
     

    var pushHub = $.connection.pushHub;

    pushHub.client.notice = function (message) {
		$("#msmsg").html(message);        
    }
    $.connection.hub.start();
</script>
